package com.azier.kapacitor.script.node.nodebind;

import com.azier.kapacitor.script.node.Node;
import com.azier.kapacitor.script.node.ShiftNode;

/**
 * 1 * @Author: luoj
 * 2 * @Date: 2020/1/19 17:19
 * 3
 */
public interface ShiftNodeBind extends Node {
    default ShiftNode shift(long interval, String durationLiteral){
        ShiftNode nextNode = new ShiftNode(interval, durationLiteral);
        setNextNode(nextNode);
        nextNode.zetHeadNode(getHeadNode());
        return nextNode;
    }
}
